package liurong.driver.stack;

public class StackTest {
	public static void main(String[] args) {
		System.out.println("main");
		log1();
	}

	public static void log1() {
		System.out.println("log1");
		StackTraceElement[] stackTrace = new Throwable().getStackTrace();
		int i = 0;
		for (StackTraceElement stackTraceElement : stackTrace) {
			System.out.println(i++ + ":" + stackTraceElement);
		}
	}
}
